export default[
    {
        type: "selection",
        minWidth: 60,
        maxWidth:60,
        align: "center",
        fixed: "left"
    },
    {
        title: "登录名",
        key: "username",
        minWidth: 120,
        fixed: "left"
    },
    {
        title: "用户名",
        key: "userRealName",
        minWidth: 145,
        fixed: "left",
        ellipsis: true,
        tooltip: true
    },
    {
        title: "所属部门",
        key: "departmentTitle",
        width: 120,
        tooltip: true
    },
    {
        title: "角色",
        key: "roleName",
        width: 120,
        tooltip: true
    },
    {
        title: "手机",
        key: "phone",
        minWidth: 115
    },
    {
        title: "邮箱",
        key: "userEmail",
        minWidth: 180
    },
    {
        title: "创建时间",
        key: "createTime",
        minWidth: 150
    },
    {
        title: "状态",
        key: "lockFlag",
        align: "center",
        minWidth: 140,
        slot: "lockFlag"
    },
    {
        title: "岗位状态",
        key: "postStatus",
        minWidth: 120,
        render: (h, params) => {
            let enable = '';
            let color = '';
            let arr = params.row.postStatus;
            if(arr==="0"){
                enable = '离岗';
                color = 'red';
            }else if (arr==="1") {
                enable = '在岗';
                color = 'blue';
            }else {
                enable = '离岗';
                color = 'red';
            }
            return h('div', {
                domProps: {
                    innerHTML: enable,
                },
                style: {
                    color: color
                }
            })
        }
    },
    {
        title: "总权重",
        key: "totalWeight",
        minWidth: 120
    },
    {
        title: "代理人",
        key: "agent",
        minWidth: 145
    },
    {
        title: "组长",
        key: "groupLeader",
        minWidth: 145
    },
    {
        title: "代理组长",
        key: "agentGroupLeader",
        minWidth: 145
    },
    {
        title: "操作",
        key: "action",
        minWidth: 100,
        align: "center",
        fixed: "right",
        slot: "action"
    }
]
